projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adead3b
)
cssnodedeclaration: Only set the id on the widget path if we have one
author
Benjamin Otte
<otte@redhat.com>
Sat, 21 Nov 2015 01:40:05 +0000
(
02:40
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Sat, 21 Nov 2015 01:40:53 +0000
(
02:40
+0100)
Widget paths don't like NULL.
gtk/gtkcssnodedeclaration.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcssnodedeclaration.c
b/gtk/gtkcssnodedeclaration.c
index 99ff6b5df18f4912663754c3c8ad1483019f71eb..bc139ffe7ab624941accbc74eb05fa43d0e299e8 100644
(file)
--- a/
gtk/gtkcssnodedeclaration.c
+++ b/
gtk/gtkcssnodedeclaration.c
@@
-623,7
+623,8
@@
gtk_css_node_declaration_add_to_widget_path (const GtkCssNodeDeclaration *decl,
/* Set name and id */
gtk_widget_path_iter_set_object_name (path, pos, decl->name);
- gtk_widget_path_iter_set_name (path, pos, decl->id);
+ if (decl->id)
+ gtk_widget_path_iter_set_name (path, pos, decl->id);
/* Set widget regions */
regions = get_regions (decl);